package com.work.flow;

import com.work.flow.common.NetWorkConfig;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.Bean;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

@EnableFeignClients
@SpringBootApplication
public class FlowApplication {

    public static void main(String[] args) {
        SpringApplication.run(FlowApplication.class, args);
    }

    //    加入的代码在这里
    @Bean
    public WebMvcConfigurer webMvcConfigurer() {
        return new NetWorkConfig();
    }

}
